x86: use macro DIV_ROUND_UP
authorSimran Singhal <singhalsimran0@gmail.com>
Fri, 3 Apr 2020 08:58:18 +0000 (10:58 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 3 Apr 2020 08:58:18 +0000 (10:58 +0200)
commit009360acc9c90513e4a85c7285d4fd7a665c66e1
treebfe49824e309f111ebca9bc029a462233758f54f
parent41cebdd1a6b5e880c768a4af69724851e6a06108
x86: use macro DIV_ROUND_UP

Use the DIV_ROUND_UP macro to replace open-coded divisor calculation
(((n) + (d) - 1) / (d)) to improve readability.

Signed-off-by: Simran Singhal <singhalsimran0@gmail.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/mm.c
xen/arch/x86/tboot.c
xen/arch/x86/x86_64/mm.c